package com.itcast.stargraph.service;

/**
 * 推送WebSocket消息给客户端
 *
 * @Author katana
 * @Date 2025/6/12 15:22
 */
public interface WsNoticeService {
    /**
     * 推送消息给指定用户
     * @param clientId
     * @param msg
     */
    void sendToUser(String clientId,String msg);
    
    /**
     * 广播消息给全部用户
     * @param msg
     */
    void sendToAll(String msg);
}
